from rest_framework import serializers
from science.models import SciencePopularization

# 科普视频
class SciencePopularizationSerializer(serializers.ModelSerializer):
    class Meta:
        model = SciencePopularization
        fields = ['id', 'title', 'cover_image', 'video_url', 'length', 'subtitle_languages', 'copyright']